<?php
mysql_connect("localhost","tftpot_ryan","Kl14ein86");
mysql_select_db("tftpot_tftp");
$parameters = json_decode(file_get_contents("php://input"));

$q=mysql_query("insert into tftpot_tftp.Stalls (name,password) values ('" .mysql_real_escape_string($parameters->{'stallName'}). "','".mysql_real_escape_string($parameters->{'stallPassword'})."')");
$result = array('success' => 'true');
print(json_encode($result));
mysql_close();


?>